package com.zhuangwei.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.sql.DataSource;

/**
 * @author LeviCoder
 * @create 2019-03-09 1:10
 */
@RestController
//@Controller
public class DemoController {

    @Autowired
    private DataSource dataSource;


    @GetMapping("/hello")
//    @RequestMapping("/hello1")
    public String hello() {
        return "hello.html=====>" + dataSource;
    }

}
